<%@ page language="java"import="ll.sms.web.*"pageEncoding="UTF-8"%>

<%
	String remove = ParamUtils.getParameter(request, "wflag");
	String id = ParamUtils.getParameter(request, "wid");

	int addtime = ParamUtils.getIntParameter(request,"addtime",0);
	if (remove != null && !remove.trim().equals("")
			&& !id.trim().equals("")) {
		//移除操作
		out.print(WebBusinessImpl.getInstance().removeWaitMessage(id));

	} else if (id != null && !id.trim().equals("")) {
			//修改发送时间
			if(addtime==0){
				out.print("{success:false,errors:{msg:'你未做任何修改'}}");
				return;
			}
				out.print(WebBusinessImpl.getInstance().modifySmsSendTime(id,addtime));
	} else {
		out.print("{success:false,errors:{msg:'修改失败！'}}");
	}
%>

